home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / demo / pwrtcp11.exe / TNTSAMPL.HP_ / TNTSAMPL.bin
Text File  |  1994-09-01  |  866b  |  24 lines

  1. // TNTC.HPP
  2. // provides C to CPP interface for TELNET protocol
  3.  
  4. class CMyPowerTelnet : public CPowerTelnet
  5.     // CPowerTelnet is the C++ class that provides TELNET processing 
  6. {
  7. private:
  8. public:
  9.     HWND hWnd;
  10.     // constructor to create a session object that is not connected yet
  11.     CMyPowerTelnet(HINSTANCE);
  12.     ~CMyPowerTelnet(void);
  13.     // informs us that comm is open
  14.     void ConnectEvent (LPCSTR RemoteDotAddr, 
  15.         WORD RemotePort, LPCSTR LocalDotAddr, WORD LocalPort, 
  16.         LPCSTR LocalName);
  17.     // informs us that data has been received
  18.     void TelnetRecvEvent (LPVOID Data, size_t Cnt);
  19.     // informs us that a TELNET option has arrived
  20.     void TelnetCmdEvent (BYTE Cmd, BYTE Option, LPBYTE SubOption, size_t SubOptionCnt);
  21.     // informs us of an exception...may prompt us to close the connection
  22.     void ExceptionEvent (PT_EXCEPTION Error, LPCSTR ErrorDesc);
  23. };   
  24.